import React, { Component } from 'react';
import { Route, HashRouter as Router, Switch } from 'react-router-dom';
import HomePage from './pages/home';
import MinePage from './pages/mine';
import LivePage from './pages/live';

class App extends Component {
    render() {
        return (
            <div className="App">
                <Router>
                    <Switch>
                        <Route exact path="/" render={() => <HomePage />} />
                        <Route path="/mine" render={() => <MinePage />} />
                        <Route path="/live" render={() => <LivePage />} />
                    </Switch>
                </Router>
            </div>
        );
    }
}
export default App;
